/*
 * global.h
 *
 *  Created on: May 14, 2013
 *      Author: Edward
 */

#ifndef GLOBAL_H_
#define GLOBAL_H_

#include "pcb.h"

//Error Checking
#define NO_ERROR 0
#define NULL_POINTER_ERROR -1
#define INDEX_OUT_OF_BOUNDS -2
#define ADRRESS_ERROR -3;
//#define NULL 0


//Process declarations for the main program
#define KEYBOARD_PROCESS 0
#define IO_PROCESS 1
#define PAIRED_PROCESS 2
#define COMPUTE_PROCESS 3
#define PRODUCER_PROCESS 4
#define CONSUMER_PROCESS 5

// main prototypes
//void create_process(int process_type, PCBPtr temp);
int get_arg_value(char * arg);
//void populate_heap(PCBPtr[], int[], int);
//void create_paired_process(PCBPtr, PCBPtr);

#endif /* GLOBAL_H_ */
